using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Domain.Crm;

/// <summary>
/// 客户关系表
/// </summary>
[SugarTable("crm_relation")]
public class CrmRelation:EntityBase
{
    /// <summary>
    /// 类型1=客户发票2=客户邮寄
    /// </summary>
    [Required]
    public int Type { get; set; } = 1;
    
    /// <summary>
    /// 源编号
    /// </summary>
    [Required]
    public long SourceId { get; set; } = 0;
    
    /// <summary>
    /// 关系编号
    /// </summary>
    [Required]
    public long RelationId { get; set; } = 0;
}